var request=require("request");
var cheerio=require("cheerio");
var mysql=require("mysql");
var debug=require("debug")("blog:update");
//创建数据库链接
var db=mysql.createConnection({
	host:"127.0.0.1",
	port:3306,
	database:"sina_blog",
	user:"root",
	password:"a1lukangyong",
})
//显示说有数据表
db.query("show tables",function(err,tables){
	if(err){
		console.log(err.stack)
	}
	else{
		console.log(tables);
	};
	//关闭
	db.end();
})